package com.boc.langxiang.contract.me;

import android.widget.PopupWindow;

import com.boc.langxiang.contract.BaseView;
import com.boc.langxiang.entity.response.ArticleEntity;
import com.boc.langxiang.presenter.BasePresenter;

import java.util.List;

/**
 * Created by admin on 2016/6/27.
 */
public interface ConcernsActivityContract {

    interface View extends BaseView {

        void setBackgroundAlpht(float v);

        void showPopupWindow(android.view.View view, PopupWindow cancelPopupWindow);


        void onNotConcern(PopupWindow cancelPopupWindow, String id, int layoutPosition);

        void onCancel(PopupWindow cancelPopupWindow);

        /**
         * 获取关注列表
         * @param list
         */
        void getConcernList(List<ArticleEntity> list);

        /**
         * 重新刷新列表
         * @param layoutPosition
         */
        void freshRequest(int layoutPosition);
    }

    interface Presenter extends BasePresenter {

       void concernList(String page);

        void delConcernlist(String id, int layoutPosition);
    }
}
